package constant;

import io.appium.java_client.android.AndroidDriver;
import io.appium.java_client.android.AndroidElement;
import org.openqa.selenium.WebDriver;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by chenkuo on 2017/7/4.
 */
public class Constant {
    /**Driver*/
    public static WebDriver driverWeb;//Web端浏览器
    public static WebDriver driverH;//H5浏览器，后续会统一改为Web浏览器
    public static AndroidDriver driverCourier;//闪送员端
    public static AndroidDriver driverUserapp;//闪送员端
    public static WebDriver clientDriver;//Web端浏览器
//    public static AndroidDriver<AndroidElement> clientDriver;//用户端app driver

    public static void main(String[] args) {
        System.out.println("aaa");
    }
    /**用户端参数*/

    public static String userBalance;//用户余额
    public static String goodsMoney;//用户货款余额
    public static String orderBalancePayAm;//余额支付金额

    /**订单相关*/
    public static List <String> OrderNumbuter =new ArrayList<String>();//订单号
    public static String PickupPassword;//取件密码
    public static String orderAmount;//订单总额
    public static String orderFareIncrease="0";//加价金额
    public static String orderFarePremium="0";//订单溢价金额
    public static float orderMoto;//摩托车金额


    /**闪送员端参数*/
    public static float courierBalance;//闪送员余额（现金账户）
    public static float courierTotalIncome;//闪送员订单收入（未抽佣）
    public static float sendGeneralTotalIncome;//寄付到付订单收入（未抽佣）
    public static float courierRealIncome;//闪送员订单实际收入
    public static float courierMoneyChange;//闪送员现金账户变动金额
    public static int courierRefuseNumber;//闪送员拒单次数
    public static int courierPendingOrderNumber;//闪送员拒单次数
    public static boolean interfaceGrabStatus = false;//是否走接口抢单

    /**隐式等待时间*/
    public static long hideWaitTime=15;//隐式等待时长

    /*app客户端参数*/
    public static float appOrderAmount;//app端订单总额
    public static float appAccount;//app端账户余额
//    public static String orderNumber;//订单号
    public static String pickupPassword;//取件密码
    public static String deliveryPassword;//收件密码
    public static String word;//判断是否存在的 标示字
    //存放订单详情信息：订单号，总价，距离，重量，寄件地址，寄件人信息，收件地址，收件人信息，取件时间，物品信息
    public static Map orderDetail = new HashMap();
    public static float h5Account;//H5端账户余额
    /**数据相关*/
    public static List <String> runParms =new ArrayList<String>();//自动化传入参数
    public static List <String> testReport =new ArrayList<String>();//测试报告中辅助显示
    public static boolean isPrice = false;//计费检查
    public static int isFirstRun = 0;//是否为第一次运行1、2、3
    public static String testModule = null;//测试的模块
    public static String jobName = null;//jenkins任务名
    public static String buildID = null;//jenkins构建id
    public static String  machineIP= null;//执行机器ip地址
    public static int  testResult= 0;//测试结果1成功2失败
    public static String  testStatus= null;//测试是否有效（待定）
    public static String  htmlReport= null;//报告地址
    public static int  allCaseNum= 0;//总场景数量
    public static int  failCaseNum= 0;//失败场景数量
    public static int  passCaseNum= 0;//通过场景数量
    public static List <String> allCaseName =new ArrayList<String>();//所有场景的名称
    public static List <String> failCaseName =new ArrayList<String>();//失败场景的名称
    public static String  testID= null;//测试任务ID
    public static String  testUser= null;//测试人员
    public static List<String> machineID = new ArrayList<String>();//统计的机器
    public static String  mobileMessage= "";//短信验证码

    /**环境切换*/
    public static String evn = null;//测试的环境
    public static String loginURL = null;//Web登录
    public static String userRegisterURL = null;//Web官网主页面
    public static String mainPageURL = null;//Web用户注册界面
    public static String orderURL = null;//获取订单链接
    public static String httpCsUrl = null;//客服登录接口
    public static String httpCsCancelOrderUrl = null;//客服流单接口
    public static String adminLoginURL = null;//admin登录
    public static String h5LoginURL = null;//微信登录
    public static String h5_2LoginURL = null;//微信登录
    public static String h5MakeOrderURL = null;
    public static String sshProt = null;
    public static String redisProt = null;
    public static String reportProt = null;
    public static String ServiceName = null;
    public static String PushServerMessage1 = null;
    public static String PushServerMessage2 = null;
    public static String CouponShareZhekouURL = null;
    public static String CouponShareManjianURL = null;
    public static String CouponShareYikoujiaURL = null;
    public static String CouponShareZhijianURL = null;


    /**账户相关*/
    public static final String SYSTEMUSER = "genming.ma@ishansong.com";
    public static final String SYSTEMPASSWORD = "shansong@8888";

    public static final String CSLOGINURL = "http://cs.s.bingex.com/pages/home/home.html#/login";
    public static final String CSPASSWORD = "123456";

    /**接口测试*/
    public static String adminLogin = null;//admin登录接口
    public static String grabUrl = null;//闪送员抢单接口
    public static String callUrl = null;//闪送员拨打电话接口
    public static String pickupPrepareUrl = null;//闪送员取件就位接口
    public static String pickupUrl= null;//闪送员取件接口
    public static String deliveryUrl= null;//闪送员收件接口
    public static String ratingUserUrl= null;//闪送员评价用户接口
    public static String courierHeartbeat= null;//闪送员心跳
    public static String courierOpenOffWork= null;//闪送员工作开关
    public static String couponAssign= null;//优惠券分配
    public static String couponConfig= null;//优惠券策略配置
    public static String saveHoliday = null;//保存节日设置
    public static String deleteHoliday = null;//删除保存的节日
    public static String assignCoupon = null;//发放优惠券组合至用户
    public static String deleteUnuseCoupon = null;//删除用户身上未消费的优惠券
    public static String mobileSecret = null; //脱敏DeleteUnuseCoupon
    public static String courierAgreeCancel = null; //脱敏DeleteUnuseCoupon






}
